home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1999 #2 / Amiga Plus CD - 1999 - No. 2.iso / System-Boost / Virus / Xtruder / Install < prev    next >
Text File  |  1997-07-21  |  6KB  |  295 lines

  1. ; *******************************************************************
  2. ;
  3. ; $VER: Install 3.6 (5.7.97)
  4. ; Install script for Xtruder copyright © 1995-1997 Martin Wulffeld
  5. ;
  6. ; *******************************************************************
  7.  
  8. (set old_level @user-level)
  9. (set @default-dest "")
  10.  
  11. (set default_lang 256)
  12.  
  13. (set #bad-kick
  14. (cat "You must at least have Kickstart 2.04 to install Xtruder!"
  15. ))
  16.  
  17. (set #copying-bootblockbb    "\nCopying Bootblock.brainfile to L:...")
  18. (set #copying-bootblock        "\nCopying Bootblock.library 3.1 to LIBS:...")
  19. (set #copying-fileid        "\nCopying FileID.library 7.10 to LIBS:...")
  20. (set #copying-filevirus        "\nCopying filevirus.library 2.12 to LIBS:...")
  21. (set #copying-reqtools        "\nCopying reqtools.library 38.1436 to LIBS:...")
  22. (set #copying-unpack        "\nCopying unpack.library 42.71 to LIBS:...")
  23. (set #copying-xfdlib        "\nCopying xfdmaster.library 37.6 to LIBS:...")
  24. (set #copying-xtruderlib    "\nCopying xtruder.library 37.2 to LIBS:...")
  25. (set #copying-xtruderexe    "\nCopying Xtruder executable...")
  26. (set #copying-documentation    "\nCopying Xtruder documentation...")
  27. (set #copying-regfiles        "\nCopying registration files...")
  28. (set #copying-catalogs        "\nCopying catalogs...")
  29. (set #copying-rexxscripts    "\nCopying rexx scripts...")
  30. (set #creating-xfd            "\nCreating directory\n\nLIBS:xfd\n\nfor external decrunchers...")
  31. (set #copying-xfdfiles        "\nCopying external decrunchers\nfor xfdmaster.library...")
  32. (set #select-dest            "Please select the path where you want to install Xtruder. A drawer named Xtruder will be created there.")
  33. (set #select-destguide        "Please select the alternative path where you want to install the Xtruder documentation. It has already been installed along with the main program.")
  34. (set #select-destrexx        "Please select the path where you want to install the Rexx scripts. A drawer named Xtruder will be created there.")
  35. (set #select-language       "Which languages should be installed?")
  36.  
  37. ;=============================================================================
  38. ; Make sure we are running under a 2.04 ROM
  39.  
  40. (if (< (/ (getversion) 65536) 37)
  41. (
  42.     (abort #bad-kick)
  43. ))
  44.  
  45. ;=============================================================================
  46.  
  47. ;*** Required libraries
  48.  
  49. (copylib
  50.     (prompt #copying-bootblockbb)
  51.     (help @copylib-help)
  52.     (source "L/Bootblock.brainfile")
  53.     (dest "L:")
  54.     (confirm)
  55. )
  56.  
  57. (copylib
  58.     (prompt #copying-bootblock)
  59.     (help @copylib-help)
  60.     (source "Libs/Bootblock.library")
  61.     (dest "LIBS:")
  62.     (confirm)
  63. )
  64.  
  65. (copylib
  66.     (prompt #copying-fileid)
  67.     (help @copylib-help)
  68.     (source "Libs/FileID.library")
  69.     (dest "LIBS:")
  70.     (confirm)
  71. )
  72.  
  73. (copylib
  74.     (prompt #copying-filevirus)
  75.     (help @copylib-help)
  76.     (source "Libs/filevirus.library")
  77.     (dest "LIBS:")
  78.     (confirm)
  79. )
  80.  
  81. (copylib
  82.     (prompt #copying-reqtools)
  83.     (help @copylib-help)
  84.     (source "Libs/reqtools.library")
  85.     (dest "LIBS:")
  86.     (confirm)
  87. )
  88.  
  89. (copylib
  90.     (prompt #copying-unpack)
  91.     (help @copylib-help)
  92.     (source "Libs/unpack.library")
  93.     (dest "LIBS:")
  94.     (confirm)
  95. )
  96.  
  97. (copylib
  98.     (prompt #copying-xfdlib)
  99.     (help @copylib-help)
  100.     (source "Libs/xfdmaster.library")
  101.     (dest "LIBS:")
  102.     (confirm)
  103. )
  104.  
  105. (copylib
  106.     (prompt #copying-xtruderlib)
  107.     (help @copylib-help)
  108.     (source "Libs/xtruder.library")
  109.     (dest "LIBS:")
  110.     (confirm)
  111. )
  112.  
  113. (set xfdokay
  114.     (makedir "LIBS:xfd"
  115.         (prompt #creating-xfd)
  116.         (help @makedir-help)
  117.         (confirm)
  118.     )
  119. )
  120.  
  121. (if xfdokay
  122.     (copyfiles
  123.         (prompt #copying-xfdfiles)
  124.         (help @copyfiles-help)
  125.         (source "Libs/xfd")
  126.         (pattern "#?")
  127.         (dest "LIBS:xfd/")
  128.         (confirm)
  129.     )
  130. )
  131.  
  132. ;*** Xtruder executable
  133.  
  134. (set programdir
  135.     (tackon
  136.         (askdir
  137.             (prompt #select-dest)
  138.             (help @askdir-help)
  139.             (default "SYS:")
  140.             (newpath)
  141.         )
  142.         "Xtruder"
  143.     )
  144. )
  145.  
  146. (set @default-dest programdir)
  147.  
  148. (copyfiles
  149.     (prompt #copying-xtruderexe)
  150.     (source "Xtruder")
  151.     (dest programdir)
  152.     (infos)
  153. )
  154.  
  155. ;*** Backup rexx script to Xtruder dir for backup
  156.  
  157. (copyfiles
  158.     (prompt #copying-rexxscript)
  159.     (source "")
  160.     (dest programdir)
  161.     (pattern "Rexx#?")
  162. )
  163.  
  164. ;*** Copy Catalogs to Xtruder dir for backup
  165.  
  166. (copyfiles
  167.     (prompt #copying-catalogs)
  168.     (source "")
  169.     (dest programdir)
  170.     (pattern "Catalogs#?")
  171. )
  172.  
  173. ;*** Copy registration files
  174.  
  175. (copyfiles
  176.     (prompt #copying-regfiles)
  177.     (source "")
  178.     (dest programdir)
  179.     (pattern "Registration#?")
  180. )
  181.  
  182. ;*** Documentation files
  183.  
  184. ; Backup
  185.  
  186. (copyfiles
  187.     (prompt #copying-documentation)
  188.     (source "")
  189.     (dest programdir)
  190.     (pattern "Documentation#?")
  191. )
  192.  
  193. ; Ask if documentation should be installed elsewhere
  194.  
  195. (set tempdocdir
  196.     (tackon
  197.         programdir
  198.         "Documentation"
  199.     )
  200. )
  201.  
  202. (set docdir
  203.     (askdir
  204.         (prompt #select-destguide)
  205.         (help @askdir-help)
  206.         (default tempdocdir)
  207.         (newpath)
  208.     )
  209. )
  210.  
  211. (copyfiles
  212.     (prompt #copying-documentation)
  213.     (source "Documentation/Xtruder.guide")
  214.     (dest docdir)
  215.     (infos)
  216. )
  217.  
  218. ;*** Rexx scripts
  219.  
  220. (set rexxdir
  221.     (tackon
  222.         (askdir
  223.             (prompt #select-destrexx)
  224.             (help @askdir-help)
  225.             (default "REXX:")
  226.             (newpath)
  227.         )
  228.         "Xtruder"
  229.     )
  230. )
  231.  
  232. (copyfiles
  233.     (prompt #copying-rexxscripts)
  234.     (source "Rexx")
  235.     (pattern "#?")
  236.     (dest rexxdir)
  237. )
  238.  
  239. ;*** Install catalog
  240.  
  241. (if (exists "SYS:Locale")
  242. (
  243.     (if (exists "LOCALE:")
  244.     (
  245.         (set lang (askoptions (prompt #select-language)
  246.                                 (help #which-language-help)
  247.                                 (choices
  248.                                     "Dansk"
  249.                                     "Deutsch"
  250.                                     "Français"
  251.                                     "Italiano"
  252.                                     "Nederlands"
  253.                                     "Norsk"
  254.                                     "Suomi"
  255.                                     "Svenska"
  256.                                     "English")
  257.                                 (default default_lang)
  258.                     )
  259.         )
  260.         
  261.         (set n 0)
  262.         (while
  263.             (set language (select n
  264.                                 "dansk"
  265.                                 "deutsch"
  266.                                 "français"
  267.                                 "italiano"
  268.                                 "nederlands"
  269.                                 "norsk"
  270.                                 "suomi"
  271.                                 "svenska"
  272.                                 "")
  273.             )
  274.         (
  275.             (if (IN lang n)
  276.             (
  277.                 (if (< n 9)
  278.                 (
  279.                     (makedir (cat "LOCALE:Catalogs/" language))
  280.                     
  281.                     (copyfiles (source (cat "Catalogs/" language))
  282.                         (dest (cat "LOCALE:Catalogs/" language))
  283.                         (all)
  284.                     )
  285.                 ))
  286.             ))
  287.             (set n (+ n 1))
  288.         ))
  289.     ))
  290. ))
  291.  
  292. (exit "Please reboot! Some older versions of the installed files might be present in memory."
  293. )
  294.